﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ConfirmProduct.aspx.cs" Inherits="WXYW.ConfirmProduct1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    客户服务中心收货确认 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div align="right" class="buttonHeader">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" OnClick="backLinkButton_Click">返回</asp:LinkButton>
        &nbsp;
        <img src="image/mobile_phone_arrow.png" alt="" />
        <asp:LinkButton ID="sendSMSPopupLnkBtn" runat="server" Text="短信通知"></asp:LinkButton>
        &nbsp;<img src="image/operateicon/check.gif" alt="" />
        <asp:LinkButton ID="submitLinkButton" runat="server" OnClick="okLinkButton_Click">更新</asp:LinkButton>
    &nbsp;&nbsp;
    </div>
    <table style="width: 100%">
        <tr style="height: 25px">
            <td style="width: 8%">
                <b>RMA #:</b>
            </td>
            <td style="width: 27%">
                <asp:Label ID="rmaLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 8%">
                <b>流水号:</b>
            </td>
            <td style="width: 27%">
                <asp:Label ID="runningNumberLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 8%">
                <b>当前状态:</b>
            </td>
            <td style="width: 22%">
                <asp:Label ID="statusLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>
    <table style="width: 100%">
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>用户信息</b>
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 10%">
                申请人:
            </td>
            <td style="width: 20%; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierNameTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 10%">
                客户名称:
            </td>
            <td style="width: 30%;  border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applyCompanyNameTxtBox" runat="server" Width="100%"></asp:Label>
            </td>
            <td style="width: 20%">
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系电话:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierPhoneTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                联系手机:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierMobilePhoneTxtBox" Width="100%" runat="server"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系传真:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierFaxTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                电子邮箱:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierEmailTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                通讯地址:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="mailAddressTxtBox" Width="100%" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
            <td>
                代理商:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="ProviderNameTxtBox" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                代申请人：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentpersonLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentpersonPhoneLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 15px">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>产品信息</b>
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <asp:GridView ID="productGridView" Width="100%" CssClass="tableList" runat="server"
                    AutoGenerateColumns="False" OnRowEditing="productGridView_RowEditing" OnRowCancelingEdit="productGridView_RowCancelingEdit"
                    OnRowUpdating="productGridView_RowUpdating" 
                    DataKeyNames="ApplicationProductID" 
                    onrowdatabound="productGridView_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <EditItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="3%" Wrap="False" />
                            <ItemStyle Width="3%" Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="产品型号">
                            <ItemTemplate>
                                <%#Eval("ProductType.ProductTypeName")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:DropDownList ID="typeDropDownList" runat="server">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ControlStyle Width="95%" />
                            <HeaderStyle Wrap="False" Width="11%" />
                            <ItemStyle Wrap="False" Width="11%" HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="序列号">
                            <EditItemTemplate>
                                <asp:TextBox ID="SNTxtBox" runat="server" 
                                    Text='<%# Bind("ProductSerialNumber") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("ProductSerialNumber") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="90%" />
                            <HeaderStyle Width="10%" Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="版本号">
                            <EditItemTemplate>
                                <asp:DropDownList ID="VersionNumberDDL" runat="server">                          
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#Eval("ProductVersionNumber")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="7%" />
                            <ItemStyle Wrap="False" Width="7%" HorizontalAlign="Left" />
                            <ControlStyle Width="90%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="数量">
                            <EditItemTemplate>
                                <asp:TextBox ID="AmountTextBox" runat="server" Text='<%# Bind("ProductCount") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("ProductCount") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="90%" />
                            <HeaderStyle Width="3%" Wrap="False" />
                            <ItemStyle Width="3%" Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="故障类型">
                            <ItemTemplate>
                                <%#Eval("ProblemType.Name")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:DropDownList ID="problemTypeDropDownList" runat="server" Enabled="false">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <HeaderStyle Wrap="False" Width="9%" />
                            <ItemStyle Wrap="False" Width="9%" />
                            <ControlStyle Width="95%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="故障现象描述">
                            <EditItemTemplate>
                                <asp:TextBox ID="ProblemDescriptionTxtBox" runat="server" 
                                    Text='<%# Bind("ProductProblemDescription") %>' Enabled="false"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" 
                                    Text='<%# Bind("ProductProblemDescription") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="90%" />
                            <HeaderStyle Width="10%" Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="True" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="外观及附件">
                            <EditItemTemplate>
                                <asp:TextBox ID="AppearanceTxtBox" runat="server" 
                                    Text='<%# Bind("ProductAppearance") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("ProductAppearance") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="90%" />
                            <HeaderStyle Width="10%" Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="购买时间">
                            <ItemTemplate>
                                <%#(Convert.ToDateTime(Eval("ProductPurchaseDateTime"))).ToString("yyyy-MM-dd")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                            <ControlStyle Width="90%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="保修性质">
                            <EditItemTemplate>
                                <asp:DropDownList ID="repairTypeDropDownList" runat="server">
                                    <asp:ListItem Text="保内"></asp:ListItem>
                                    <asp:ListItem Text="保外"></asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#Eval("ProductRepairType")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="5%" />
                            <ItemStyle Wrap="False" Width="5%" />
                            <ControlStyle Width="90%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="检查结果备注">
                            <EditItemTemplate>
                                <asp:TextBox ID="CommentTxtBox" runat="server" Text='<%# Bind("ReceiveRemark") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("ReceiveRemark") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="90%" />
                            <HeaderStyle Width="12%" Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Width="12%" Wrap="False" />
                        </asp:TemplateField>
                        <asp:CommandField HeaderText="操作" CancelText="取消" EditText="编辑" UpdateText="确定" 
                            ShowEditButton="True" >
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                            <ControlStyle Width="46%" />
                        </asp:CommandField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>  
        <tr style="height: 25px;">
            <td colspan="6"><hr /></td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <img src="image/ico_album.gif" alt="" style="float: left" /><b>图片预览区</b>
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
                <asp:Panel ID="picturePanel" runat="server">
                </asp:Panel>
            </td>
        </tr>
         <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>上传图片</b>
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="3">
                <asp:FileUpload ID="FileUpload1" runat="server" Width="100%" />
            </td>
            <td colspan="3">
                <asp:Button ID="uploadButton" runat="server" Text="上传" Width="80px" OnClick="uploadButton_Click" />
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;" align="center">
            <td colspan="6">
                <%--<asp:Button ID="OKButton" runat="server" Text="收货确认" OnClick="okLinkButton_Click" />--%>
                <asp:Label ID="MsgLbl" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    <Ajax:ModalPopupExtender ID="EmailNoticeModalPopupExtender" TargetControlID="sendSMSPopupLnkBtn"
        BackgroundCssClass="modalBackground" runat="server" PopupControlID="EmailNoticePanel"
        CancelControlID="LinkButton2">
    </Ajax:ModalPopupExtender>
    <asp:Panel ID="EmailNoticePanel" runat="server" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" Width="600px">
        <!-- Header -->
        <div class="box-header" id="QuatationDragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                神州数码收货信息短信通知</h2>
        </div>
        <div class="functionPanel">
            <table width="100%" cellpadding="0px" cellspacing="0px">
                <tr style="height: 25px; text-align: right;">
                    <td colspan="6">
                        <img src="image/operateicon/docdelete.gif" alt="" />
                        <asp:LinkButton ID="LinkButton2" runat="server">关闭</asp:LinkButton>
                        <img src="image/mobile_phone_arrow.png" alt="" />
                        <asp:LinkButton ID="sendSMSLnkBtn" runat="server" OnClick="sendSMSLnkBtn_Click">发送</asp:LinkButton>
                    </td>
                </tr>
                <tr style="height: 25px;">                    
                    <td style="width: 10%">
                        收件人:
                    </td>
                    <td style="width: 20%">
                        <asp:Label ID="receiverLbl" runat="server"></asp:Label>
                    </td>
                    <td style="width: 10%">
                        联系人:
                    </td>
                    <td style="width: 20%">
                        <asp:Label ID="contactLbl" runat="server"></asp:Label>
                    </td>
                    <td style="width: 10%">
                        手机:
                    </td>
                    <td style="width: 20%">
                        <asp:Label ID="mobilePhoneLbl" runat="server"></asp:Label>
                    </td>   
                </tr>
                <tr>
                    <td colspan="6">
                        <asp:TextBox ID="SMSTxtBox" runat="server" Width="100%" Rows="5" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
</asp:Content>
